libxl: suspend: switch_logdirty_done takes rc
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Dec 2013 12:34:09 +0000 (12:34 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 26 Jun 2015 15:53:50 +0000 (16:53 +0100)
commit52d860d78fd38f5a0cedff771d66313b42e8b801
treed8076e266fa5f997ace7120bd31c63f90b425fe6
parentee644ba982b98e83781ee15d1c3603f577baf918
libxl: suspend: switch_logdirty_done takes rc

switch_logdirty_done used to take the value to pass to
libxl__xc_domain_saverestore_async_callback_done (ie, the return value
from the callback).  (This was mistakenly described as "ok" in the
prototype, but in the definition it is "broke" and all the call sites
passed 0 for success or -1 for error.)

Instead, make it take a libxl error code (rc).  Convert this to the
suspend callback value at the end.

No functional change in this patch.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dom.c